/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Entity;
import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;

import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType=IdentityType.APPLICATION)
public class ODoc {
    @PrimaryKey
    @Persistent(valueStrategy=IdGeneratorStrategy.IDENTITY)
    private Long ODocID;

    @Persistent private String PubNum; // Số VB đi
    @Persistent private Date PubDate; // Ngày phát hành
    @Persistent private String Subject; // Nội dung trích yếu
    @Persistent private String BriefContent; // Nội dung tóm tắt
    @Persistent private String Notes; // Ghi chú
    @Persistent private Date DraftDate; // Ngày soạn thảo
    @Persistent private String DraftUsername; // Tên người soạn thảo
    @Persistent private Date SignDate; // Ngày ký
    @Persistent private String SignByName; // Tên người ký
    @Persistent private String ReceivePlaceName; // Tên nơi nhận
    @Persistent private String ReceiveByName; // Tên người nhận
    @Persistent private String IDocID;// Trả lời cho VB đến
    @Persistent private Boolean State; // Trạng thái khởi thảo hay phát hành
    @Persistent private String DocumentName; // Upload Document
    @Persistent private Long AccountID;
    /*
    @Persistent
    private Account User;
    */
    ////Constructor
    public ODoc(){
        
    }    
    public Long getODocID(){
        return ODocID;
    }
    public String getPubNum() {
        return PubNum;
    }

    public void setPubNum(String PubNum) {
        this.PubNum = PubNum;
    }

    public Date getPubDate() {
        return PubDate;
    }

    public void setPubDate(Date PubDate) {
        this.PubDate = PubDate;
    }

    public String getSubject() {
        return Subject;
    }

    public void setSubject(String Subject) {
        this.Subject = Subject;
    }

    public String getBriefContent() {
        return BriefContent;
    }

    public void setBriefContent(String BriefContent) {
        this.BriefContent = BriefContent;
    }

    public String getNotes() {
        return Notes;
    }

    public void setNotes(String Notes) {
        this.Notes = Notes;
    }

    public Date getDraftDate() {
        return DraftDate;
    }

    public void setDraftDate(Date DraftDate) {
        this.DraftDate = DraftDate;
    }

    public String getDraftUsername() {
        return DraftUsername;
    }

    public void setDraftUsername(String DraftUsername) {
        this.DraftUsername = DraftUsername;
    }

    public Date getSignDate() {
        return SignDate;
    }

    public void setSignDate(Date SignDate) {
        this.SignDate = SignDate;
    }

    public String getSignByName() {
        return SignByName;
    }

    public void setSignByName(String SignByName) {
        this.SignByName = SignByName;
    }

    public String getReceivePlaceName() {
        return ReceivePlaceName;
    }

    public void setReceivePlaceName(String ReceivePlaceName) {
        this.ReceivePlaceName = ReceivePlaceName;
    }

    public String getReceiveByName() {
        return ReceiveByName;
    }

    public void setReceiveByName(String ReceiveByName) {
        this.ReceiveByName = ReceiveByName;
    }

    public String getIDocID() {
        return IDocID;
    }

    public void setIDocID(String IDocID) {
        this.IDocID = IDocID;
    }

    public Boolean getState() {
        return State;
    }

    public void setState(Boolean State) {
        this.State = State;
    }

    /**
     * @return the accountID
     */
    public Long getAccountID() {
        return AccountID;
    }

    /**
     * @param accountID the accountID to set
     */
    public void setAccountID(Long accountID) {
        this.AccountID = accountID;
    }

    public String getDocumentName() {
        return DocumentName;
    }
    public void setDocumentName(String DocumentName) {
        this.DocumentName = DocumentName;
    }

}
